package com.lizhivscaomei.txt2json;

public class Article {
    private int index;
    private String name;
    private String introduce;
    private String tedian;
    private String price;

    public Article() {
        this.index = 0;
        this.name = "";
        this.introduce = "";
        this.tedian = "";
        this.price = "";
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntroduce() {
        return introduce;
    }

    public void setIntroduce(String introduce) {
        this.introduce = introduce;
    }

    public String getTedian() {
        return tedian;
    }

    public void setTedian(String tedian) {
        this.tedian = tedian;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
        if(index==0){
            this.setTedian("");
            this.setPrice("");
            this.setName("");
            this.setIntroduce("");
        }
    }
}
